<template>
	<view>
		<match-media :min-width="768">
		   <el-carousel trigger="click" height="430px">
		      <el-carousel-item v-for="item in items" :key="item">
		   
					   <el-image style="top: -10px;" :src="item.url" />
			
		      </el-carousel-item>
		    </el-carousel>
		</match-media>
		<match-media :max-width="768">
			<u-swiper  :list="list" indicator indicatorMode="line" circular></u-swiper>
		</match-media>
	</view>
</template>

<script>
	
	export default {
		name:"b-header",
		data() {
			return {
				items: [
					{ url: '../../static/banner/2.png'},
					{ url: '../../static/banner/3.png'},
					{ url: '../../static/banner/4.png'},
					{ url: '../../static/banner/1.png'}
				],
				list: [ 
				'../../static/banner/2.png',
				'../../static/banner/3.png',
				'../../static/banner/4.png',
				'../../static/banner/1.png']
			};
		}
	}
</script>

<style scoped>
.demonstration {
  color: var(--el-text-color-secondary);
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>